package com.gf.framework.translatordemo.service.impl;

import com.gf.framework.translatordemo.dto.StudentDTO;
import com.gf.framework.translatordemo.service.StudentService;
import org.springframework.stereotype.Service;

import java.time.LocalDate;
import java.util.ArrayList;
import java.util.List;

/**
 * @author gaofei
 * @Description
 * @create 2022/5/26 13:06
 */
@Service
public class StudentServiceImpl implements StudentService {
    @Override
    public List<StudentDTO> queryByTeacherId(Integer teacherId) {
        List<StudentDTO> studentDTOS = new ArrayList<>();
        for (int i = 0; i < 10; i++) {
            studentDTOS.add(new StudentDTO(i, "name" + i,
                    LocalDate.of(2010, 1, 1), "17302899067"));
        }

        return studentDTOS;
    }
}
